package rhc.common.entity;

import java.util.Date;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;


/**url类
 * @author lenovo1
 *
 */
@Document(collection="my_url")
public class MyUrl extends AbstractDocument{

	public static final String COLUMN_TASK_ID="task_id";
	public static final String COLUMN_URL="url";
	public static final String COLUMN_REFERER_URL="referer_url";
	public static final String COLUMN_DATA="data";
	public static final String COLUMN_HTTP_METHOD="http_method";
	public static final String COLUMN_UNIQUE_CODE="unique_code";
	public static final String COLUMN_CREATE_DATE="create_date";
	public static final String COLUMN_NEXT_UPDATE="next_updae";
	
	/**
	 * 任务id
	 */
	@Field(value=COLUMN_TASK_ID)
	private String taskId;
	
	/**
	 * 地址
	 */
	@Field(value=COLUMN_URL)
	private String url;
	
	/**
	 * 
	 */
	@Field(value=COLUMN_REFERER_URL)
	private String refererUrl;
	
	/**
	 * 数据
	 */
	@Field(value=COLUMN_DATA)
	private String data;
	
	/**
	 * 请求方法
	 */
	@Field(value=COLUMN_HTTP_METHOD)
	private String httpMethod;
	
	/**
	 * 特征码，用于去重
	 */
	@Field(value=COLUMN_UNIQUE_CODE)
	private String uniqueCode;
	
	/**
	 * 创建时间
	 */
	@Field(value=COLUMN_CREATE_DATE)
	private Date createDate;
	
	/**
	 * 下一次更新时间
	 */
	@Field(value=COLUMN_NEXT_UPDATE)
	private long nextUpdate;

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public String getHttpMethod() {
		return httpMethod;
	}

	public void setHttpMethod(String httpMethod) {
		this.httpMethod = httpMethod;
	}

	public String getUniqueCode() {
		return uniqueCode;
	}

	public void setUniqueCode(String uniqueCode) {
		this.uniqueCode = uniqueCode;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public long getNextUpdate() {
		return nextUpdate;
	}

	public void setNextUpdate(long nextUpdate) {
		this.nextUpdate = nextUpdate;
	}

	public String getRefererUrl() {
		return refererUrl;
	}

	public void setRefererUrl(String refererUrl) {
		this.refererUrl = refererUrl;
	}
	
}
